<%-- 
    Document   : internships
    Created on : 27 nov. 2014, 20:49:32
    Author     : metbill
--%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
 
<fieldset><legend> Internships  </legend></fieldset>
<c:if test="${empty listOffer}">
    <h3>Try Again. No internships here ! </h3>
</c:if>
<c:if test="${not empty listOffer}">    
    <c:forEach var="company" items="${listOffer}">
        <c:forEach var="current" items="${company.value}">
            <form class="navbar-form navbar-left" role="detail" method="get" action="/WebApp/detailsInternship">
                 <div class="form-group">

                         
                        <h3>${current.title}</h3>
                        <h5><b>Company: </b>${company.key}</h5>
                        <p > <script>
                             var descr = "${current.description}";
                             document.write(descr.substring(0,250));
                         </script></p>
                        <div class="row">
                            <div class="col-lg-4">
                                <span> <b>Date : </b> ${current.startDate}</span>
                            </div>
                            <div class="col-lg-4">
                                <span> <b>Duration :</b> ${current.duration} </span>
                            </div>

                            
                         <input type="hidden" name="internshipID" value="${current.internshipID}" />
                         <input type="hidden" name="title" value="${current.title}" />
                         <input type="hidden" name="description" value="${current.description}" />
                         <input type="hidden" name="duration" value="${current.duration}" />
                         <input type="hidden" name="location" value="${current.location}" />
                         <input type="hidden" name="status" value="${current.status}" />
                         <input type="hidden" name="studyDomain" value="${current.studyDomain}" />
                         <input type="hidden" name="contact" value="${current.contact}" />
                         <input type="hidden" name="type" value="${current.type}" />
                         <input type="hidden" name="startDate" value="${current.startDate}" />
                         <input type="hidden" name="salary" value="${current.salary}" />
                         <input type="hidden" name="nameCompany" value="${company.key}" />

                           <div class="col-lg-4">
                             <input type="submit" value="Detail" class="btn btn-primary"  >

                         </div>

                        </div>
                 </div>

            </form>
                
        </c:forEach>
</c:forEach>
</c:if>
